﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ControlCenter.通讯;

namespace 转发程序.转发服务
{
    /// <summary>
    /// 服务
    /// </summary>
    public class SerPorcess
    {
        public static int prot = int.Parse(System.Configuration.ConfigurationManager.AppSettings["邦定端口"]);
        监听服务 tcpServer = null;
        
        /// <summary>
        /// 运行
        /// </summary>
        public void Process()
        {

            tcpServer = new AsyncTcpServer(new System.Net.IPEndPoint(System.Net.IPAddress.Any, prot));


            通讯控制 通讯控制 = new CommunicationControl窜改数据(tcpServer);
        }

        public void Stop()
        {
            tcpServer.Stop();
             
        }
    }
}
